package com.gzzhsdcm.czh.myxw.view;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.ListView;

/**
 * @fileName MyListView
 * @date on 2018-11-26 16:07
 * @company 贵州智合时代传媒有限公司
 * @developers czh
 * @email 1632365610@qq.com
 */
public class MyListView extends ListView {
    public MyListView(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }

    public MyListView(Context context) {
        super(context);
    }

    public MyListView(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    @Override
    protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
        //解决显示不全的问题
        heightMeasureSpec = MeasureSpec.makeMeasureSpec(Integer.MAX_VALUE >> 2, MeasureSpec.AT_MOST);
        super.onMeasure(widthMeasureSpec, heightMeasureSpec);
    }
}
